package com.haoxuer.discover.notice.data.app;

import com.haoxuer.imake.ChainMake;
import com.haoxuer.imake.template.hibernate.TemplateHibernateDir;
import com.haoxuer.imake.templates.adminlte.TemplateAdminLTE;
import com.haoxuer.discover.notice.data.entity.UserMessage;
import com.haoxuer.discover.notice.data.entity.UserMessageMember;
import com.haoxuer.discover.notice.data.entity.UserMessageSubject;
import com.haoxuer.discover.notice.data.entity.UserNotification;
import com.haoxuer.discover.notice.data.entity.UserNotificationCatalog;
import com.haoxuer.discover.notice.data.entity.UserNotificationMember;
import com.haoxuer.discover.notice.data.entity.UserNotificationNum;
import com.haoxuer.discover.notice.data.entity.UserNotificationTime;
import java.io.File;
import java.util.ArrayList;
import java.util.List;

/**
 * Hello world!
 */
public class App {
  public static void main(String[] args) {
    ChainMake make = new ChainMake(TemplateAdminLTE.class, TemplateHibernateDir.class);
    make.setAction("com.quhaodian.notice.controller.admin");
    
    File view = new File("E:\\mvnspace\\usite\\web\\src\\main\\webapp\\WEB-INF\\ftl\\admin");
    make.setView(view);
    
    List<Class<?>> cs = new ArrayList<Class<?>>();
    cs.add(UserMessage.class);
    cs.add(UserMessageMember.class);
    cs.add(UserMessageSubject.class);
    cs.add(UserNotification.class);
    cs.add(UserNotificationCatalog.class);
    cs.add(UserNotificationMember.class);
    cs.add(UserNotificationNum.class);
    cs.add(UserNotificationTime.class);
    
    make.setDao(false);
    make.setService(true);
    make.setView(false);
    make.setAction(false);
    make.makes(cs);
    System.out.println("ok");
  }
}
